<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" />
<title>코오롱</title>
<link rel="stylesheet" type="text/css" href="${requestScope.contextPath}/css/import.css" />
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-ui-1.8.14.custom/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-ui-1.8.14.custom/js/jquery-ui-1.8.14.custom.min.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/common.js"></script>
<c:set var="userAgent" value="${header['User-Agent']}" />
<fmt:setBundle basename="com.kolon.config.properties.config" var="config" />
<c:if test="${fn:indexOf(userAgent, 'Android') != -1}"><c:set var="platForm" value="Android" /></c:if>
<c:if test="${fn:indexOf(userAgent, 'iPhone') != -1}"><c:set var="platForm" value="iPhone" /></c:if>

<script type="text/javascript">
	function appBack() {
		document.location.href='${requestScope.contextPath}/business/mCafeteriaMenu/mCafeteriaMenu.do?res=${res}&YMD=${year}-${month}-${day}';
	}
</script>

<script type="text/javascript">
	function conDelete(url) {
		var del;
		del=confirm("삭제하시겠습니까?");
		if (del==true) {
			location.href=url;
		}
	}
</script>

</head>
<body>
	<div id="wrap">
		<div class="header">
			<h1>구내식당</h1>
		</div><!-- // header -->
		<div class="content">
		<c:forEach items="${mapList}" var="mapInfo" varStatus="status">
			<p class="comment">${mapInfo.Opinion}<br /> ${mapInfo.CreateDateY}/${mapInfo.CreateDateM}/${mapInfo.CreateDateD}/${mapInfo.UserName}
			<c:if test="${mapInfo.UserID eq sessionScope.SESSION_USER_INFO.userId}">
				<span class="icon">
					<a href="${requestScope.contextPath}/business/mCafeteriaMenu/mCafeteriaBoardModify.do?OpinionCD=${mapInfo.OpinionCD}&YMD=${year}-${month}-${day}&res=${res}&msg=${mapInfo.Opinion}"><img src="${requestScope.contextPath}/images/btn/com_modify.gif" alt="수정" /></a>&nbsp;
					<a href="javascript:conDelete('${requestScope.contextPath}/business/mCafeteriaMenu/mCafeteriaBoardDel.do?OpinionCD=${mapInfo.OpinionCD}&YMD=${year}-${month}-${day}&res=${res}');"><img src="${requestScope.contextPath}/images/btn/com_del.gif" alt="삭제" /></a>
				</span>
			</c:if>
			</p>
		</c:forEach>
			<c:if test="${empty mapList}">
			<p style="text-align:center;padding-top:9px; font-size:16px;">의견이 없습니다.</p>
			</c:if>
				<p class="btn_area2 btn_view"><a href="${requestScope.contextPath}/business/mCafeteriaMenu/mCafeteriaMenu.do?res=${res}&YMD=${year}-${month}-${day}"><img src="${requestScope.contextPath}/images/btn/btn_menu_view.gif" alt="식단보기" /></a>&nbsp;&nbsp;<a href="${requestScope.contextPath}/business/mCafeteriaMenu/mCafeteriaBoardWrite.do?res=${res}&YMD=${year}-${month}-${day}"><img src="${requestScope.contextPath}/images/btn/btn_opinion3.gif" alt="의견달기" /></a></p>
		</div><!-- // content -->
	</div><!-- // wrap -->
</body>
</html>
